center box: Fix size allocation
authorMatthias Clasen <mclasen@redhat.com>
Sat, 10 Jun 2017 11:52:01 +0000 (07:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 10 Jun 2017 11:53:06 +0000 (07:53 -0400)
This missing pair of parens was causing expanding children
to overlap.

gtk/gtkcenterbox.c

index 390e68319b9824b8a7fffc038864e84338d8f9b8..f91f0d97825bf86024df85a422b047a98afa128e 100644 (file)
@@ -201,7 +201,7 @@ gtk_center_box_distribute (GtkCenterBox     *self,
         start_size = center_pos;
 
       if (end_expand)
-        end_size = size - center_pos + center_size;
+        end_size = size - (center_pos + center_size);
     }
   else
     {